<template>
  <div class="itemCard bgwrite">
    <div class="top">
      <div class="name fz2">{{form.orderName}}</div>
      <div class="content flex fz4">
        <div class="wordsGray">作图数量</div>
        <div>{{form.countUid}}</div>
      </div>
      <div class="content flex fz4">
        <div class="wordsGray">初次上门</div>
        <div>{{form.homeTime}}</div>
      </div>
      <div class="content flex fz4">
        <div class="wordsGray">预约日期</div>
        <div v-for="(item,index) in form.preordainDate" :key="index">{{item}}</div>
      </div>
      <div class="content flex fz4">
        <div class="wordsGray">约定地点</div>
        <div>{{form.address}}</div>
      </div>
    </div>
    <div class="bot flex flex-space-x">
      <div class="botleft flex">
        <div class="wordsGray tit">计时中</div>
        <div class="timeclock bgprimary wordsWrite fz2">00</div>
        <div class="wordsprimary dots fz2">：</div>
        <div class="timeclock bgprimary wordsWrite fz2">00</div>
        <div class="wordsprimary dots fz2">：</div>
        <div class="timeclock bgprimary wordsWrite fz2">00</div>
      </div>
      <div class="botright flex">
        <div class="wordsprimary fz4">进入计时器</div>
        <div class="arrowRight">
          <img src="@/assets/img/performance/orderCard/arrowRight.png" width="100%" alt>
        </div>
      </div>
    </div>
    <div class="rightimg">
      <!-- <img :src="form.orderStatus" width="100%" alt> -->
    </div>
    <div class="msg">
      <div class="dot">
        <img src="@/assets/img/performance/orderCard/dot.png" width="100%" alt>
      </div>
      <img src="@/assets/img/performance/orderCard/itemMsg.png" width="100%" alt>
    </div>
  </div>
</template>
<script>
export default {
  props: ["form"],
  data() {
    return {};
  },
  filters: {},
  mounted() {}
};
</script>

<style lang="scss" scoped>
.itemCard {
  position: relative;
  width: 94%;
  margin: auto;
  box-shadow: 0px 2px 8px 4px rgba(216, 216, 216, 0.5);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.1rem;
  .top {
    padding: 0.4rem 0.24rem;
    .name {
      font-weight: bold;
      margin-bottom: 0.1rem;
      width: calc(100% - 1.4rem);
      height: 0.58rem;
      overflow: hidden; /*超出部分隐藏*/
      white-space: nowrap; /*不换行*/
      text-overflow: ellipsis; /*超出部分文字以...显示*/
    }
    .content {
      margin-top: 0.2rem;
      div:first-child {
        width: 1.35rem;
      }
      div:last-child {
        flex: 1;
      }
    }
  }
  .bot {
    background-color: #f5f8ff;
    height: 1.08rem;
    padding: 0 0.24rem;
    //
    .botleft {
      align-items: center;
      .tit {
        margin-right: 0.15rem;
      }
      .timeclock {
        width: 0.6rem;
        height: 0.6rem;
        border-radius: 6px;
        font-weight: 600;
        text-align: center;
        line-height: 0.6rem;
      }
      .dots {
        font-weight: 600;
      }
    }
    .botright {
      align-items: center;
      .arrowRight {
        position: relative;
        top: 0.03rem;
        width: 0.24rem;
        margin-left: 0.16rem;
      }
    }
  }
  .rightimg {
    position: absolute;
    width: 1.2rem;
    top: 0;
    right: 0;
  }
  .msg {
    position: absolute;
    width: 0.9rem;
    top: 1rem;
    right: 0.3rem;
    .dot {
      position: absolute;
      right: 0.12rem;
      top: 0.12rem;
      width: 0.22rem;
    }
  }
}
</style>
